package com.ruoyi.address.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户地址对象 sys_user_address
 * 
 * @author ruoyi
 * @date 2025-02-19
 */
public class SysUserAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @Excel(name = "主键ID")
    private Long addressId;

    /** 用户ID，外键关联sys_user表 */
    @Excel(name = "用户ID，外键关联sys_user表")
    private Long userId;

    /** 所在地区 */
    @Excel(name = "所在地区")
    private String location;

    /** 详细地址及门牌号 */
    @Excel(name = "详细地址及门牌号")
    private String detailedAddress;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    private String receiverName;

    /** 收件人手机号 */
    @Excel(name = "收件人手机号")
    private String receiverMobile;

    /** 是否设为默认地址，0为否，1为是 */
    @Excel(name = "是否设为默认地址，0为否，1为是")
    private Integer isDefault;

    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setDetailedAddress(String detailedAddress) 
    {
        this.detailedAddress = detailedAddress;
    }

    public String getDetailedAddress() 
    {
        return detailedAddress;
    }
    public void setReceiverName(String receiverName) 
    {
        this.receiverName = receiverName;
    }

    public String getReceiverName() 
    {
        return receiverName;
    }
    public void setReceiverMobile(String receiverMobile) 
    {
        this.receiverMobile = receiverMobile;
    }

    public String getReceiverMobile() 
    {
        return receiverMobile;
    }
    public void setIsDefault(Integer isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() 
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressId", getAddressId())
            .append("userId", getUserId())
            .append("location", getLocation())
            .append("detailedAddress", getDetailedAddress())
            .append("receiverName", getReceiverName())
            .append("receiverMobile", getReceiverMobile())
            .append("isDefault", getIsDefault())
            .toString();
    }
}
